﻿<div class="allsort_out">
    <ul class="allsort">
        @{
            var cat1 = 1000;
            var cat2 = 2000;
            var cat3 = 3000;
        }
        @foreach (DataRow dr in V5.GZProduct.Query_By_List("*", " And ParentTypeID='00000000-0000-0000-0000-000000000000' ", " ClassCode asc", 15).Rows) {
            <li>
                <h3>
                    <a title="@dr["TypeName"]" target="_blank" href="@V5.Url.Action("Product/category", new { ID = dr["ID"].ToString() })">@dr["TypeName"]</a>
                </h3>
                <div style="min-height: 480px; height: 481px;" class="show_sort" categoryid="@(cat1)">
                    <div class="show_sort_l fl">
                        @foreach (DataRow dr2 in V5.GZProduct.Query_By_List("*", " And ParentTypeID='" + @dr["ID"] + "'", "", 12).Rows) {
                                
                            <dl>
                                <dt><a tk="CatMenu_@(cat2)" href="@V5.Url.Action("Product/category", new { ID = dr2["ID"].ToString() })"
                                    target="_blank">@dr2["TypeName"]</a></dt>
                                @foreach (DataRow dr3 in V5.GZProduct.Query_By_List("*", " And ParentTypeID='" +
                                @dr2["ID"] + "'", "", 7).Rows) {
                                    <dd>
                                        <a tk="CatMenu_@(cat3)" target="_blank" href="@V5.Url.Action("Product/category", new { ID = dr3["ID"].ToString() })">@dr3["TypeName"]</a></dd>
                                    cat3 = cat3 + 1;
                                }
                            </dl>
                                cat2 = cat2 + 1;
                        }
                    </div>
                     
                </div>
            </li>
           cat1 = cat1 + 1;
        }
    </ul>
</div>
